#pragma once
#include "SpriteSheet.h"
#include "HelpfulData.h"

class Animation : public SpriteSheet
{
private:
	ClDwn m_frameSwitch;
	bool m_playing;
	bool m_loop;
public:
	Animation();
	~Animation();
	void initialize(LPCWSTR fileName, int count, int numRows, int numColumns, int spriteWidth, int spriteHeight, float fps, bool a_loop, bool relativeToCamera);
	void update(float dT);
	void setCurrentFrame(int index);
	void loop(bool a_loop) { m_loop = a_loop; }
	void pause();
	void reset(bool pause);
	void play();
};